package com.bwie.orders.feign;

import com.bwie.common.utils.R;
import com.bwie.orders.vo.BargainVo;
import com.bwie.orders.vo.NotesVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "bargain")
public interface BargainFeign {
    @RequestMapping("bargain/bargain/info/{bid}")
    R info3(@PathVariable("bid") Long bid);
    @RequestMapping("bargain/bargain/update")
    R update3(@RequestBody BargainVo bargainVo);
    @RequestMapping("bargain/notes/save")
    R save(@RequestBody NotesVo notes);
    @RequestMapping("bargain/notes/findCount")
    int findCount(@RequestParam("userId")Long userId,
                         @RequestParam("bargainId")Long bargainId);
}
